package com.CST.controller.cb;

import com.CST.common.api.ResultObject;
import com.CST.dto.cb.JxAssetValueDTO;
import com.CST.service.cb.JxSalaryProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author nmx
 * @since 2023-06-30
 */
@Api(tags = {"工资项目"})
@RestController
@RequestMapping("/jxSalaryProject")
public class JxSalaryProjectController {

    @Autowired
    private  JxSalaryProjectService jxSalaryProjectService;

    @PostMapping("/getSalaryProject")
    @ApiOperation("采集薪酬系统工资项目")
    public ResultObject<String> getSalaryProject() {
        String result = jxSalaryProjectService.getSalaryProject();
        if (!"success".equals(result)) {
            return ResultObject.success(result, "采集失败");
        }
        return ResultObject.success("采集成功");
    }

}
